#ifndef MQCLIENT_H_
#define MQCLIENT_H_

#define NAME_LEN        51
#define QUIT_POS        4
#define NAME_POS        0



int nombreMQ (void);
int listaMQ (void);
int agregarMQ (void);
int removerMQ (void);
int salirMQ (void);
int commitMQ (void);

void readCommandsMQ (void);
int mainMQ (void);

int commit_fileMQ (char * path, int type);

void * listenSrvMQ (void *parmsLS);

int takeSrvMQ (char * msg);
int makeCommitMQ(void);

void atenderListaMQ(char * msg);
void atenderAddMQ (char * msg);
void atenderUpdateMQ (char * msg);
void atenderWillUpdateMQ(char * msg);
int listenQueueMQ();
int rcv_data_MQbl (int mqid, int mqtype, char * r_msg);
void sighandINTMQ(int signo);
void sighandLSMQ(int signo);
void closeAllMQ (void);


#endif /*MQCLIENT_H_*/
